package order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import common.model.result.Result;
import org.springframework.stereotype.Service;
import order.service.impl.ShopServiceFeignClientFallback;

@Service
@FeignClient(name = "shop-server", fallback = ShopServiceFeignClientFallback.class)
public interface ShopServiceFeignClient {
    //根据shopId查询店铺
    @GetMapping("/shop/detail/{id}")
    Result getShopById(@PathVariable("id") Long id);
}
